package com.internetCafes.spms.web.tenant.dao;

import com.internetCafes.spms.web.tenant.model.TenantRoleInfo;
import com.internetCafes.spms.core.generic.GenericDao;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 租户角色信息
 * 
 * @author Sunny
 * @email rekeeper2011@hotmail.com
 * @date 2019-10-31 18:09:54
 */
@Mapper
public interface TenantRoleInfoMapper extends GenericDao<TenantRoleInfo, Long>{

    /**
     * 插入
     */
    public int insert(TenantRoleInfo tenantRoleInfo);

    /**
     * 批量插入
     */
    public int insertBatch(List<TenantRoleInfo> tenantRoleInfoList);

    /**
     * 选择插入
     */
    public int insertSelective(TenantRoleInfo tenantRoleInfo);

    /**
     * 按主键ID查询
     */
    public TenantRoleInfo selectByPrimaryKey(Long id);

    /**
     * 按主键ID选择更新
     */
    public int updateByPrimaryKeySelective(TenantRoleInfo tenantRoleInfo);

    /**
     * 按主键ID更新
     */
    public int updateByPrimaryKey(TenantRoleInfo tenantRoleInfo);

    /**
     * 按参数查询
     */
    public List<TenantRoleInfo> selectByParams(Map<String, Object> params);

    /**
     * 按参数查询数量
     */
    public long countByParams(Map<String, Object> params);

    /**
     * 按主键ID删除
     */
    public int deleteByPrimaryKey(Long id);

    /**
     * 按主键ID批量删除
     */
    public int deleteBatchByPrimaryKey(List<Long> ids);
	
}
